<div class="links form">
	<?php echo $this->BootstrapForm->create('Link');?>
	<fieldset>
		<legend><?php echo __('Add Link'); ?></legend>

		<?php if (is_root_tenant()): ?>
			<?php echo $this->BootstrapForm->input('tenant_id', array('validate' => 'min:1')); ?>
		<?php endif; ?>

		<?php echo $this->BootstrapForm->input('active', array('type' => 'hidden', 'value' => 1)); ?>
		<?php echo $this->BootstrapForm->input('name', array('validate' => 'required: true')); ?>
		<?php echo $this->BootstrapForm->input('url', array('validate' => 'required: true, url: true')); ?>
	</fieldset>
	<?php echo $this->BootstrapForm->end(__('Submit'));?>
</div>

<?php echo $this->start('sidebar'); ?>
<?php echo 	$this->element('menu'); ?>
<?php echo $this->end(); ?>
